package com.sh.责任链模式.one;

/**
 * @Author: sh
 */
public class SchoolMasterApprover extends Approver{
    public SchoolMasterApprover(String name) {super(name); }
    @Override
    public void processApprover(ApproverRequest approveRequest) {
        if(approveRequest.getPrice() > 30000) {
            System.out.println(" 请求编号 id= " + approveRequest.getId() + " 被 " + this.name + " 处理");
        }else {
            next.processApprover(approveRequest);
        }
    }
}
